//
//  ShooterCell.m
//  BallRankingProject
//
//  Created by lanou3g on 15/5/29.
//  Copyright (c) 2015年 luojian. All rights reserved.
//

#import "ShooterCell.h"

@implementation ShooterCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self setInforage];
    }

    return self;
}
- (void)setInforage
{
    
    CGRect frame=[UIScreen mainScreen].bounds;
    //CGRect fram=CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(self.frame));
    frame.size.height=60;
    self.frame=frame;
   // NSLog(@"fram==%f",self.frame.size.width);
    self.numberLable1=[[UILabel alloc] initWithFrame:CGRectMake(5, 10, CGRectGetHeight(self.frame)-20, CGRectGetHeight(self.frame)-20)];
   
    self.imagesView=[[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/6, 5, CGRectGetWidth(self.frame)/6, CGRectGetHeight(self.frame)-10)];
    self.nameLable2=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/6*2, 0, CGRectGetWidth(self.frame)/6*2, CGRectGetHeight(self.frame))];
    self.teamLable3=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/6*4, 0, CGRectGetWidth(self.frame)/6, CGRectGetHeight(self.frame))];
    self.ballLable4=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/6*5+10, 0, CGRectGetWidth(self.frame)/6, CGRectGetHeight(self.frame))];
    [self.contentView addSubview:_numberLable1];
    [self.contentView addSubview:_imagesView];
    [self.contentView addSubview:_nameLable2];
    [self.contentView addSubview:_teamLable3];
    [self.contentView addSubview:_ballLable4];
//    _nameLable2.font=[UIFont systemFontOfSize:10.0];
 _teamLable3.font=[UIFont systemFontOfSize:12.0];
     _nameLable2.font=[UIFont systemFontOfSize:14.0];
    _numberLable1.textAlignment=1;
//     _ballLable4.font=[UIFont systemFontOfSize:10.0];
    self.backgroundColor=[UIColor clearColor];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
